<?php

	class NavigationView
	{
		//registerController
		private static $registerButtonFromLogin = "NavigationRegisterButton";
		private static $buttonValueFromLogin = "Registrera";
		
		//loginController
		private static $loginButtonFromRegister = "loginButton1";
		private static $buttonValueFromCreateUser = "login";
		
		public static function usingRegisterController()
		{
			if(isset($_GET[self::$registerButtonFromLogin]) && 
			$_GET[self::$registerButtonFromLogin] == self::$buttonValueFromLogin)
			{
				return true;
			}
			else 
			{
				return false;
			}
			
		}
		public static function usingLoginController()
		{
			if(isset($_GET[self::$loginButtonFromRegister]) && 
			$_GET[self::$loginButtonFromRegister] == $_GET[self::$buttonValueFromCreateUser])
			{
				return true;
			}
			else
			{
				return false;	
			}
		}
	}

?>